package org.sean.fugao.data.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ConsumeOrder implements Serializable{

	private Integer orderId; // INT(11) NOT NULL AUTO_INCREMENT ,
	private String orderNumber; // VARCHAR(45) NOT NULL ,
	private Date creationDate; // DATETIME NOT NULL ,
	private BigDecimal totalAmount = BigDecimal.ZERO;
	private Date completionDate; // DATETIME NOT NULL ,
	private Employee operateEmployee; // INT(11) NOT NULL ,
	private String comments; // VARCHAR(1000) NULL DEFAULT NULL ,

	//collection attribute
	private List<ConsumeOrderDetail> orderDetails = new ArrayList<ConsumeOrderDetail>();
	
	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public Date getCompletionDate() {
		return completionDate;
	}

	public void setCompletionDate(Date completionDate) {
		this.completionDate = completionDate;
	}

	public Employee getOperateEmployee() {
		return operateEmployee;
	}

	public void setOperateEmployee(Employee operateEmployee) {
		this.operateEmployee = operateEmployee;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public List<ConsumeOrderDetail> getOrderDetails() {
		return orderDetails;
	}

	public void setOrderDetails(List<ConsumeOrderDetail> orderDetails) {
		this.orderDetails = orderDetails;
	}
}
